package com.ruoyi.manage.enterprise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.enterprise.domain.EcEnterpriseCheck;
import com.ruoyi.manage.enterprise.mapper.EcEnterpriseCheckMapper;
import com.ruoyi.manage.enterprise.service.IEcEnterpriseCheckService;
import org.springframework.stereotype.Service;


/**
 * 企业注册核验Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-15
 */
@Service
public class EcEnterpriseCheckServiceImpl extends ServiceImpl<EcEnterpriseCheckMapper, EcEnterpriseCheck> implements IEcEnterpriseCheckService{


    @Override
    public EcEnterpriseCheck queryGetById(Long id){
        EcEnterpriseCheck ecEnterpriseCheck = this.getById(id);
        return ecEnterpriseCheck;
    }

    /**
     * 新增企业注册核验
     *
     * @param ecEnterpriseCheck 企业注册核验
     * @return 结果
     */
    @Override
    public boolean addEcEnterpriseCheck(EcEnterpriseCheck ecEnterpriseCheck){
        boolean save =this.save(ecEnterpriseCheck);
        return save;
    }

    /**
     * 修改企业注册核验
     *
     * @param ecEnterpriseCheck 企业注册核验
     * @return 结果
     */
    @Override
    public boolean updateEcEnterpriseCheck(EcEnterpriseCheck ecEnterpriseCheck){
        return this.updateById(ecEnterpriseCheck);
    }

    /**
     * 批量删除企业注册核验
     *
     * @param ids 需要删除的企业注册核验主键
     * @return 结果
     */
    @Override
    public boolean deleteEcEnterpriseCheckByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
